import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d= scanner.nextDouble();

        //write your code here......
        double m = d - (int)d;
        int n = (int)(m * 10);
        int i = (int)d;
        if(n >= 5){
            i++;
        }
        System.out.println(i);
    }
}